package com.housekeeping.housekeeping.advertisingmanagement.dao;/*
 * @author  pyh
 * @date  2021/1/22 0022 下午 7:47
 * @version 1.0
 * @since JDK1.8_241
 */

import com.housekeeping.housekeeping.advertisingmanagement.entity.AdMessages;
import com.housekeeping.housekeeping.advertisingmanagement.entity.Product;

import java.sql.SQLException;
import java.util.List;

public interface ProductDao {
    //添加
    int insert(Product product);
    // 修改
    Product update(int id);
    //查总条数
    int selectCount() throws SQLException;
    // 查询
    List<Product> selectByPage(int limit, int size) throws SQLException;
    // 删除
    int delete(int id);
}
